import { requestClient } from '#/api/request';

export interface TypeDefDto {
  pathOrBeanName: string;
  filterConditions?: Record<string, string>;
}

export interface Option {
  label: string;
  value: string;
}

/**
 * 获取选项列表
 */
export function getOptionsApi(data: TypeDefDto) {
  return requestClient.post<Option[]>('/global/getOptions', data);
}
